package com.zw.a.basic.a06.demo02_extends;

//案例: 老师类
public class Teacher extends Person {

    //老师类独有的功能: 讲课
    public void teach() {
        System.out.println("老师要讲课!");
    }
}
